@import url("../../styles/config.less");

.header-page {
  background-color: @bg-white;

  .header {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    background-color: @bg-white;

    .title {
      font-size: 28px;
      color: @blue;
    }
  }

  .item {
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 30px;
    color: @gray;
    cursor: pointer;
  }

  .icon {
    font-size: 22px;
  }

  .img-box {
    // position: relative;
    width: 30px;
    height: 30px;
    background-color: #add;
  }

  .left,
  .right {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .active {
    position: relative;
    color: @black-deep;
    font-weight: 700;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      height: 3px;
      width: 100%;
      background-color: @blue;
    }
  }

  .auto-complete {
    width: 340px !important;
    transition: width 0.3s;

    .ant-input-search {
      padding: 4px 0 4px 10px;
    }
  }

  .auto-complete-focus {
    width: 440px !important;
  }

  .ant-select-selector {
    width: 440px;
  }

  .questions {
    transition: transform 0.3s;
    transform-origin: 0;
  }

  .questions-hide {
    transform: scale(0);
  }

  .opacity0 {
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s, transform 0s 0.3s;
    position: absolute;
    display: block;
    left: 50%;
    transform: translate(-50%, 100%) scale(0);
    bottom: -2px;
    width: 360px;
    min-height: 200px;
    max-height: 400px;
    padding-bottom: 40px;
    // border: 1px solid @border-color-gray;
    background-color: @bg-white;
    box-shadow: 0 5px 20px rgba(26, 26, 26, 0.1);
    cursor: default;
    &::after {
      position: absolute;
      content: "";
      left: 50%;
      transform: translate(-50%, -50%) rotate(45deg);
      top: 0;
      width: 16px;
      height: 16px;
      background-color: @bg-white;
      border: 1px solid @border-color-gray;
      border-right: 0;
      border-bottom: 0;
    }

    .ant-tabs-nav-list {
      width: 100%;
      display: flex;
      justify-content: space-around;
    }

    .icon {
      font-size: 22px;
      margin: 0;
    }

    .footer {
      width: 100%;
      display: flex;
      position: absolute;
      left: 0;
      bottom: 0;
      justify-content: space-between;
      align-items: center;
      padding: 6px;
      border-top: 1px solid @border-color-gray;

      .item {
        cursor: pointer;
        margin: 0;
      }
    }
  }

  .notice-box {
    position: relative;

    .notice {
      // 消息通知
      opacity: 1;
      transform: translate(-50%, 100%) scale(1);
      transition: opacity 0.3s, transform 0s 0s;
    }
  }

  // 我的私信部分
  .message-box {
    position: relative;
  }

  .message {
    // 私信
    position: absolute;
    display: block;
    left: 50%;
    bottom: -2px;
    width: 360px;
    min-height: 200px;
    max-height: 400px;
    padding-bottom: 40px;
    // border: 1px solid @border-color-gray;
    background-color: @bg-white;
    box-shadow: 0 5px 20px rgba(26, 26, 26, 0.1);
    cursor: default;
    opacity: 1;
    transform: translate(-50%, 100%) scale(1);
    transition: opacity 0.3s, transform 0s 0s;
    &::after {
      position: absolute;
      content: "";
      left: 50%;
      transform: translate(-50%, -50%) rotate(45deg);
      top: 0;
      width: 16px;
      height: 16px;
      background-color: @bg-white;
      border: 1px solid @border-color-gray;
      border-right: 0;
      border-bottom: 0;
    }
    .footer {
      width: 100%;
      display: flex;
      position: absolute;
      left: 0;
      bottom: 0;
      justify-content: space-between;
      align-items: center;
      padding: 6px;
      border-top: 1px solid @border-color-gray;
    }
    .item {
      margin: 0;
    }
  }

  .message-box .title-text {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid @border-color-gray;
  }

  .notice-icon-box .tab-no-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .notice-icon-box .tab-no-content .icon {
    font-size: 80px;
    color: @gray-dark;
  }

  .img-box-wrap .me-box-wrap {
    width: auto;
    padding: 12px 0 0 0;
    min-height: 0;
  }

  .img-box-wrap .me-box {
    opacity: 1;
    transform: translate(-50%, 100%) scale(1);
    transition: opacity 0.3s, transform 0s 0s;
  }

  .img-box-wrap {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
  }

  .img-box-wrap .li {
    white-space: nowrap;
    padding: 12px 16px;
    cursor: pointer;
  }

  .img-box-wrap .li:hover {
    background-color: @bg-gray-dark;
  }
}

.hot-icon {
  color: @hot-red;
}

.search-title {
  width: 100%;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.ant-input-search-icon::before {
  border: none;
}

.auto-complete-focus .ant-input-suffix svg {
  color: @blue;
}

.no-hot .ant-select-item-group:nth-of-type(1) {
  display: none;
}
